package com.zhiyou.service;

import com.zhiyou.bean.Comment;
import com.zhiyou.bean.Product;
import com.zhiyou.bean.User;

import java.util.List;

public interface ProductService {
    List<Product> getAllProduct();

    List<Product> getProductsByStatus(Integer status);

    List<Product> getProductsByOrder(String value);

    List<Product> getProductsBySuccessStatus(int i);

    Product getProductById(Integer productId);

    int insertOne(Product product);

    Integer getProductId(Product product);

    List<Product> getProductByUserId(Integer id);

    List<Product> getProductByTypeIdJY(int i);

    List<Product> getProductByTypeIdAX(int i);

    List<Product> getProductByTypeIdFP(int i);

    List<Product> getProductByTypeIdCY(int i);

    List<Product> getProductByTypeIdHD(int i);

    int deleteUserAndProductById(Integer id);

    int addComment(Comment comment1);

    List<Comment> getAllCommentById(Integer id);

    User getUserById(Integer userId);
}

